﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.Outpatient.Migrations
{
    /// <inheritdoc />
    public partial class add_table_optnavrec : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "OtpNavRec",
                schema: "Outpatient",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uuid", nullable: false),
                    OtpNavType = table.Column<int>(type: "integer", nullable: false),
                    PatnId = table.Column<Guid>(type: "uuid", nullable: false),
                    OtpNo = table.Column<string>(type: "text", nullable: false),
                    PatnName = table.Column<string>(type: "text", nullable: false),
                    OtpNavNo = table.Column<string>(type: "text", nullable: false),
                    DeptCodg = table.Column<string>(type: "text", nullable: false),
                    DeptName = table.Column<string>(type: "text", nullable: false),
                    ConsultRmCodg = table.Column<string>(type: "text", nullable: false),
                    ConsultRmName = table.Column<string>(type: "text", nullable: false),
                    DrCodg = table.Column<string>(type: "text", nullable: false),
                    DrName = table.Column<string>(type: "text", nullable: false),
                    BegnDate = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
                    RgstTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: true),
                    SignInTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: true),
                    LastCallTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: true),
                    OtpNavStatus = table.Column<int>(type: "integer", nullable: false),
                    TenantId = table.Column<Guid>(type: "uuid", nullable: true),
                    ExtraProperties = table.Column<string>(type: "text", nullable: false),
                    ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: false),
                    CreationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
                    CreatorId = table.Column<Guid>(type: "uuid", nullable: true),
                    LastModificationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: true),
                    LastModifierId = table.Column<Guid>(type: "uuid", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_OtpNavRec", x => x.Id);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "OtpNavRec",
                schema: "Outpatient");
        }
    }
}
